package com.wechat.constant;

public enum JSApiList {
    // 获取 jsApi需要的验证key
    JSAPI_TICKET("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi"),
    // 获取微信的AK
    ACCESS_TOKEN_URL("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET"),
    GET_AUTHORIZATION_CODE_URL("https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect"),
    GET_AUTHORIZATION_ACCESS_TOKEN_URL("https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code"),
    ;

    private final String url;

    public String getUrl() {
        return url;
    }

    JSApiList(String url) {
        this.url = url;
    }
}
